<{* --------------------------------------------------------
 * @package scuttle
 * @file /templates/scuttle_bookmarks_edit.html
-------------------------------------------------------- *}>
<{include file="db:scuttle_header.html"}>

<{if $actionForm->hasError()}>
<div class="haserror">
	<{$smarty.const._MD_SC_WORD_EDIT_ERROR}>
	<ul>
	<{foreach item=errval from=$actionForm->getErrorMessages()}>
	<li><{$errval}></li>
	<{/foreach}>
	</ul>
</div>
<{/if}>

<{$smarty.const._MD_SC_BOOKMARKS_EDIT}>

<form action="index.php?action=BookmarksEdit" method="post" enctype="multipart/form-data">
	<{xoops_token form=$actionForm}>
	<{xoops_input type=hidden name=bId value=$actionForm->get('bId')}>
	<{xoops_input type=hidden name=uId value=$actionForm->get('uId')}>
	<{xoops_input type=hidden name=bIp value=$actionForm->get('bIp')}>
	<{xoops_input type=hidden name=bDatetime value=$actionForm->get('bDatetime')}>
	<{xoops_input type=hidden name=bModified value=$actionForm->get('bModified')}>
	<{xoops_input type=hidden name=ret value=$ret}>

	<table width='100%' cellspacing='5' cellpadding='3' border='0'>
	<tbody>
		<tr>
			<td align="right"><{$smarty.const._MD_SC_BOOKMARKS_BADDRESS}></td>
			<td>
			<{xoops_input type=text name=bAddress value=$actionForm->get('bAddress') size=75 maxlength=255}><br />
			</td>
		</tr>
		<tr>
			<td  align="right"><{$smarty.const._MD_SC_BOOKMARKS_BTITLE}></td>
			<td>
			<{xoops_input type=text name=bTitle value=$actionForm->get('bTitle') size=75 maxlength=255}><br />
			</td>
		</tr>
		<tr>
			<td align="right"><{$smarty.const._MD_SC_BOOKMARKS_BDESCRIPTION}></td>
			<td>
			<{xoops_input type=text name=bDescription value=$actionForm->get('bDescription') size=75 maxlength=255}>
			</td>
		</tr>
		<tr>
			<td align="right"><{$smarty.const._MD_SC_IMAGE}></td>
			<td>
				<{if $object->getShow('image')}>
				<p>
				<img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/scuttle/<{$object->getShow('image')}>" alt="<{$object->getShow('name')}>" title="<{$object->getShow('name')}>" /><br />
				<{$object->getShow('image')}>
				</p>
				<input type="checkbox" name="imgdel" value="1">&nbsp;<{$smarty.const._MD_SC_IMAGE_CHKDSC}>
				<br />
				<{/if}>
				<{xoops_input type=file name=image size=20}><br />

			</td>
		</tr>

		<tr>
			<td align="right"><{$smarty.const._MD_SC_TAGS}></td>
			<td>
				<{xoops_input type=text id=tags name=tags value=$entory_tags size=75 maxlength=255}><{$smarty.const._MD_SC_TAGS_DOC}>
			</td>
		</tr>

		<tr>
			<td align="right"><{$smarty.const._MD_SC_BOOKMARKS_BSTATUS}></td>
			<td>
			<{html_options name=bStatus options=$typeOptions  selected=$actionForm->get('bStatus')}>
			</td>
		</tr>

		<tr>
			<td colspan="2" align="center">
				<input class="formButton" type="submit" value="<{$smarty.const._MD_SC_BOOKMARKS_SAVE}>" />&nbsp;&nbsp;
				<input class="formButton" type="submit" value="<{$smarty.const._MD_SC_BOOKMARKS_DEL}>" name="_form_control_delete"/>&nbsp;&nbsp;
				<input class="formButton" type="submit" value="<{$smarty.const._BACK}>" name="_form_control_cancel" />
			</td>
		</tr>
	</tbody>
	</table>



<div class="collapsible">
	<h3><{$smarty.const._MD_SC_TAGS_POPULAR}></h3>
	<{$smarty.const._MD_SC_TAGS_USEDSC}>
	<p id="popularTags" class="tags">
		<{if count($tag_cloud) gt 0}>
			<{foreach item=i from=$tag_cloud}>
				<span title="<{$i.tag}> <{$i.tag}>" style="font-size:<{$i.size}>" onclick="addTag(this)"><{$i.tag}></span> 
			<{/foreach}>
		<{/if}>
	</p>
</div>



</form>